import { createRouter, createWebHistory } from 'vue-router'
import HospitalManagement from "@/views/HospitalManagement.vue";
import PrescriptionManagement from "@/views/PrescriptionManagement.vue";
import NavMenu  from "@/views/NavMenu.vue";
import AdminFeedback from "@/views/AdminFeedback.vue";
const routes = [
    {
        path: '/HospitalManagement',
        name: 'HospitalManagement',
        component: HospitalManagement
    },
    {
        path: '/',
        name: 'PrescriptionManagement',
        component: PrescriptionManagement
    },
    {
        path: '/NavMenu',
        name: 'NavMenu',
        component: NavMenu
    },
    {
        path: '/AdminFeedback',
        name: 'AdminFeedback',
        component: AdminFeedback
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes // short for `routes: routes`
})

export default router